package com.itmate.wei.service;

import java.util.List;

import com.itmate.wei.dao.MessageBoardDao;
import com.itmate.wei.dao.StatuesDao;
import com.itmate.wei.entity.MessageBoard;
import com.itmate.wei.entity.Statues;

public class MessageBoardService {
	private MessageBoardDao messageBoardDao = new MessageBoardDao();
	
	public List<MessageBoard> SelectAllMB(){
		return messageBoardDao.SelectAllMB();
		
	}
	public int addMessageBoard(MessageBoard sta){
		return messageBoardDao.addMessageBoard(sta);
		
	}
	
	public boolean DeleteMesByID(int id){
		boolean flag=false;
		int i = messageBoardDao.DeleteMesByID(id);
		if(i>0){
			flag=true;
		}
		return flag;
	}
}
